package cn.edu.fzu.homemaking.company.mapper;

import cn.edu.fzu.homemaking.company.domain.entity.RobotMsg;
import cn.edu.fzu.homemaking.company.domain.enums.RobotMsgStatusEnum;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author wanjie
 * @version 1.0
 */
public interface RobotMsgMapper {
    //定制信息展示列表
    List<RobotMsg> queryAllRobotMsgs(@Param("companyId") Long companyId,@Param("key") String key, @Param("message") String message, @Param("status") RobotMsgStatusEnum status);

    //新增定制消息回复模板
    int insertRobotMsg(@Param("robotMsg") RobotMsg robotMsg);

    //修改定制消息状态
    int updateRobotMsg(@Param("robotMsg") RobotMsg robotMsg);

    //删除定制消息
    int deleteRobotMsg(@Param("id") Long id,@Param("companyId") Long companyId);
}
